import 'package:dash/widgets/responsiveness.dart';
import 'package:dash/widgets/side_menu/horizontal_menu_item.dart';
import 'package:dash/widgets/side_menu/vertical_menu_item.dart';
import 'package:flutter/material.dart';

class SideMenunItem extends StatelessWidget {
  final String itemName;
  final void Function() onTap;
  const SideMenunItem(this.itemName, {Key? key, required this.onTap})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    if (ResponsiveWidget.isCustomSize(context))
      return VMenuItem(itemName, onTap: onTap);
    else
      return HMenuItem(itemName, onTap: onTap);
  }
}
